Integrand size = 12, antiderivative size = 4 \[ \int \frac {\sin (x)}{-\cot (x)+\csc (x)} \, dx=x+\sin (x) \]
[Out]
Time = 0.09 (sec) , antiderivative size = 4, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {4477, 2761, 8} \[ \int \frac {\sin (x)}{-\cot (x)+\csc (x)} \, dx=x+\sin (x) \]
[In]
[Out]
Rule 8
Rule 2761
Rule 4477
Rubi steps \begin{align*} \text {integral}& = \int \frac {\sin ^2(x)}{1-\cos (x)} \, dx \\ & = \sin (x)+\int 1 \, dx \\ & = x+\sin (x) \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(14\) vs. \(2(4)=8\).
Time = 0.04 (sec) , antiderivative size = 14, normalized size of antiderivative = 3.50 \[ \int \frac {\sin (x)}{-\cot (x)+\csc (x)} \, dx=2 \left (\frac {x}{2}+\frac {\sin (x)}{2}\right ) \]
[In]
[Out]
Time = 1.32 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.25
method | result | size |
risch | \(x +\sin \left (x \right )\) | \(5\) |
default | \(\frac {2 \tan \left (\frac {x}{2}\right )}{1+\tan \left (\frac {x}{2}\right )^{2}}+2 \arctan \left (\tan \left (\frac {x}{2}\right )\right )\) | \(25\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 4, normalized size of antiderivative = 1.00 \[ \int \frac {\sin (x)}{-\cot (x)+\csc (x)} \, dx=x + \sin \left (x\right ) \]
[In]
[Out]
\[ \int \frac {\sin (x)}{-\cot (x)+\csc (x)} \, dx=- \int \frac {\sin {\left (x \right )}}{\cot {\left (x \right )} - \csc {\left (x \right )}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 38 vs. \(2 (4) = 8\).
Time = 0.30 (sec) , antiderivative size = 38, normalized size of antiderivative = 9.50 \[ \int \frac {\sin (x)}{-\cot (x)+\csc (x)} \, dx=\frac {2 \, \sin \left (x\right )}{{\left (\frac {\sin \left (x\right )^{2}}{{\left (\cos \left (x\right ) + 1\right )}^{2}} + 1\right )} {\left (\cos \left (x\right ) + 1\right )}} + 2 \, \arctan \left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1}\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 18 vs. \(2 (4) = 8\).
Time = 0.28 (sec) , antiderivative size = 18, normalized size of antiderivative = 4.50 \[ \int \frac {\sin (x)}{-\cot (x)+\csc (x)} \, dx=x + \frac {2 \, \tan \left (\frac {1}{2} \, x\right )}{\tan \left (\frac {1}{2} \, x\right )^{2} + 1} \]
[In]
[Out]
Time = 23.28 (sec) , antiderivative size = 4, normalized size of antiderivative = 1.00 \[ \int \frac {\sin (x)}{-\cot (x)+\csc (x)} \, dx=x+\sin \left (x\right ) \]
[In]
[Out]